<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>

<body>

<form class="layui-form" lay-filter="gradenForm" id="add_graden_form" action="" style="padding:15px 10px;">
    <input type="hidden" name="clId">
    <div class="layui-form-item">
        <label class="layui-form-label">园所名称</label>
        <div class="layui-input-block">
            <input type="text" name="glName" required  lay-verify="required" placeholder="请输入园所的名称" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">园所人数</label>
        <div class="layui-input-block">
            <input type="text" name="number" readonly="readonly" value="15"  lay-verify="required" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">所在地址</label>
        <div class="layui-input-block">
            <input type="text" name="glAddress" required  lay-verify="required" placeholder="请输入所在位置" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">开园时间：</label>
        <div class="layui-input-block">
            <input type="text" name="openingHours" class="layui-input" id="openingHours" placeholder="yyyy-MM-dd">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">备注：</label>
        <div class="layui-input-block">
            <input type="text" name="remarks" required  lay-verify="required" placeholder="请输入所在位置" autocomplete="off" class="layui-input">
        </div>
    </div>
    <script>
        layui.use(['upload','laydate','form'], function() {
            var $ = layui.jquery
                , upload = layui.upload;
            var laydate = layui.laydate;
            var myDate = new Date();
            var year = myDate.getFullYear();//获取当前年
            var yue = myDate.getMonth()+1;//获取当前月
            var date = myDate.getDate();
        $("#openingHours").val(year+yue+date);
        laydate.render({
            elem: '#openingHours'
        });
        })
    </script>
</form>
</body>
</html>